using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using MimeCloud.AssetManagement.Business.Interface;
using MimeCloud.AssetManagement.Editor.AssetCreation;
using System.IO;
using MimeCloud.WPF.Imaging;


namespace MimeCloud.AssetManagement.AssetRendering.AssetContent
{
    /// <summary>
    /// Interaction logic for ImageContentViewer.xaml
    /// </summary>
    public partial class ImageContentViewer : UserControl, IAssetContentViewer
    {
        public ImageContentViewer()
        {
            InitializeComponent();
        }

        #region IAssetContentViewer Members

        public void DisplayAssetContent(IAssetContent content)
        {
            DisplayImage.Source = ThumbnailHelper.GetImageForContent(content);
        }

        #endregion
    }
}
